home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Half-Life Model Viewer / src / GlWindow.h < prev    next >
C/C++ Source or Header  |  1999-05-04  |  1KB  |  71 lines

  1. //
  2. //                 Half-Life Model Viewer (c) 1999 by Mete Ciragan
  3. //
  4. // file:           GlWindow.h
  5. // last modified:  Apr 28 1999, Mete Ciragan
  6. // copyright:      The programs and associated files contained in this
  7. //                 distribution were developed by Mete Ciragan. The programs
  8. //                 are not in the public domain, but they are freely
  9. //                 distributable without licensing fees. These programs are
  10. //                 provided without guarantee or warrantee expressed or
  11. //                 implied.
  12. //
  13. // version:        1.2
  14. //
  15. // email:          mete@swissquake.ch
  16. // web:            http://www.swissquake.ch/chumbalum-soft/
  17. //
  18. #ifndef INCLUDED_GLWINDOW
  19. #define INCLUDED_GLWINDOW
  20.  
  21.  
  22.  
  23. #ifndef INCLUDED_MXGLWINDOW
  24. #include <mx/mxGlWindow.h>
  25. #endif
  26.  
  27. #ifndef INCLUDED_VIEWERSETTINGS
  28. #include "ViewerSettings.h"
  29. #endif
  30.  
  31.  
  32.  
  33. enum // texture names
  34. {
  35.     TEXTURE_GROUND = 1,
  36.     TEXTURE_BACKGROUND = 2
  37. };
  38.  
  39.  
  40.  
  41. class StudioModel;
  42.  
  43.  
  44.  
  45. class GlWindow : public mxGlWindow
  46. {
  47.     int d_textureNames[2];
  48.  
  49. public:
  50.     // CREATORS
  51.     GlWindow (mxWindow *parent, int x, int y, int w, int h, const char *label, int style);
  52.     ~GlWindow ();
  53.  
  54.     // MANIPULATORS
  55.     virtual int handleEvent (mxEvent *event);
  56.     virtual void draw ();
  57.  
  58.     int loadTexture (const char *filename, int name);
  59.     void dumpViewport (const char *filename);
  60.  
  61.     // ACCESSORS
  62. };
  63.  
  64.  
  65.  
  66. extern GlWindow *g_GlWindow;
  67.  
  68.  
  69.  
  70. #endif // INCLUDED_GLWINDOW
  71.